runOnStartup(async runtime => {
    runtime.addEventListener("tick", () => tick())
    runtime.getLayout("MainLevel").addEventListener("afterlayoutstart", () => init())
});
function tick() {
    if (runtime.layout.name != "MainLevel") return;
}
function init() {
}
globalThis.UIplayerHeartMissHeart = {
    missHeart:function(){
        /**@type {IObjectClass} */
        let HeartAllClass = runtime.objects.UI_playerHeart.getAllInstances()
        let bignUmber =HeartAllClass.length
        /**@type {ISpriteInstance} */
        let chooseUIheart = HeartAllClass[bignUmber-1]
        chooseUIheart.destroy()
    }
}
export default UIplayerHeartMissHeart